<?php

use yii\db\Migration;
use yii\db\Schema;

class m170728_101407_ADD_COLUMN_ORDER_CUSTOMER_COMPLETE extends Migration
{
    public function up()
    {

        $this->addColumn('{{order_customer}}', 'complete', Schema::TYPE_INTEGER. "(1)  DEFAULT  '2' COMMENT '1 完整 2  不完整' ");
    }

    public function down()
    {
        echo "m170728_101407_ADD_COLUMN_ORDER_CUSTOMER_COMPLETE cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
